Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    Zadig Toolkit

    Zadig Toolkit is a Visual Studio Code extension for Zadig, a product under KodeRover. This extension allows developers to access Zadig's core capabilities directly in their IDE without the hassle of platform switching, enabling easy viewing, service debugging and upgrades, restarting, and real-time log viewing of Kubernetes environments in Zadig projects. During daily development, after code modifications, developers can hot-deploy services to Zadig cloud without committing to Git repositories or building images, facilitating service self-testing, integration testing, and validation. Currently, Zadig Toolkit supports the following features:

    • Zadig environment viewing
    • Microservice restart, service image replacement, service detail viewing, Pod real-time log viewing, login to service instance Pod
    • Remote debugging of local applications, configuring remote development environments

    Version Compatibility

    The Zadig Toolkit extension supports versions v1.12.0 - v1.16.0.

    # Prerequisites

    • System preparation: Install Zadig v1.12.0+ version
    • Project preparation: Refer to How to Use GitHub + Zadig to Achieve Production-Level Continuous Delivery(opens new window)

    # Install Extension

    • Open Visual Studio Code and go to the marketplace.
    • Search for Zadig Toolkit in the marketplace, view details and install.

    plugin-install

    # Configure Extension

    1. Open the installed Zadig Toolkit extension.
    2. Click Settings to enter the extension configuration page.

    plugin-settingplugin-setting

    Configuration Parameter Description:

    1. Zadig Deployment Address: Please fill in the complete URI according to the actual protocol, for example: http://zadig.com.
    2. Zadig API Token: Enter the Zadig system, click Account Settings, as shown in the figure below.

    plugin-setting

    After configuration is complete, you can see projects in the Zadig system in the left sidebar.

    plugin-setting

    # How to Use

    # Remote Debugging of Local Code

    Below, using the prepared voting-demo project as an example, we'll introduce how to perform remote debugging through Zadig Toolkit.

    • Select the voting-demo project -> dev environment, click the icon on the right side of the environment to set Kube Config (i.e., the config configuration file of the cluster where the dev environment is located), you can select this configuration file in the file directory or manually enter its path and press Enter.

    plugin-setting

    • Select the vote service, click the debug button to enter development mode.

    debug-service

    • Select the local development code directory, in this example it's koderover/zadig(opens new window) -> examples -> voting-app.

    debug-servicedebug-service

    • Select the base image python:3.10.4-buster for the development environment.

    debug-servicedebug-service

    • Wait a moment for the development mode to start and complete, then enter the development container dev, the content in the selected directory will be automatically synchronized to the development container.

    debug-servicedebug-service

    • Modify local code and save: Change the background color of the first vote button.

    debug-service

    • The modified code will be automatically synchronized to the remote dev development environment. In the terminal, enter the vote directory and execute the startup command.
    pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
    gunicorn app:app -b 0.0.0.0:80 --log-file - --access-logfile - --workers 4 --keep-alive 0
    
    1
    2

    debug-service

    • Access the vote service address, the modification result is shown in the figure below.

    debug-service

    • Click the red button to confirm ending development mode, the container returns to normal.

    debug-servicedebug-service

    At this point, a complete local debugging process demonstration is finished.

    # View Environment and Services

    During daily integration testing, you need to diagnose services. Through Zadig Toolkit, you can view service status, restart services, replace service images, view real-time service logs, and login to the corresponding Pod of the service.

    • Right-click on a service to view service details. In the service details page, you can view real-time service logs, and click the edit icon on the right side of the image to modify the service image.

    detail_env_info

    • Right-click on a service, then click Restart Service to restart the service.

    detail_env_info

    • Right-click on a service, click Terminal to login to the corresponding Pod of the service.

    detail_env_info

    # Configure Remote Development Environment

    • When you need to modify the base image of the development environment, or modify the synchronized local code directory, you can quickly set it by clicking the Development Mode Configuration button.

    Description of each field in the configuration:

    [
      {
        "projectName": Project name,
        "envName": Environment name,
        "serviceName": Service name,
        "containerName": Development environment container name,
        "image": Development environment base image,
        "codeDir": Local directory synchronized to the development environment container
      }
    ]
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    dev_env_config

    • After saving the custom development mode configuration, click Start Development Mode, and it will quickly start development mode based on the information in the configuration file.

    dev_env_config

    ← Custom Workflow TasksGit-Zadig Plugin→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式